package day17;

public class Test0000 {
    public static void main(String[] args){
        System.out.println(100/9);
        System.out.println(test(9,100));
    }
    public static int test(int num, int top){
        if(top/num % 2 == 0) return -8 * (top/num/2);
        else return (-8 * (((top/num)-1)/2)) - top/num*num;
    }

}
